package com.itheima.ArrayList;

import java.util.ArrayList;

public class Demo01ArrayList {
    public static void main(String[] args) {
        ArrayList<String> list=new ArrayList<>();
        list.add("张三");
        list.add("李四");
        list.add(1,"王五");
        list.add(3,"ss");
        for (String str : list) {
            System.out.println(str);
        }
        System.out.println(list);
    }
}
